package test.mapstruct;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * @author liuli31
 * @date 2022/1/27
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CarAssembler {
    CarAssembler MAPPER = Mappers.getMapper( CarAssembler.class );
   /* @Mappings({
            @Mapping(target = "manufacturer", source = "make")
    })*/
    CarDto carToCarDto(Car car);
}
